<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			window.onload = function() {
				var inputs = document.getElementsByTagName('input');
				console.log(inputs[0].value);
			}
		</script>
	</head>
	<body>
		<input type="text" value="Hello JS Dom" />
		
		
		<!-- 
		<script type="text/javascript">
			var inputs = document.getElementsByTagName('input');
			console.log(inputs[0].value);
		</script> -->
	</body>
</html>
